Optimal. Leaf size=46 \[ \frac{(b c-a d) (a+b x)^{m+1}}{b^2 (m+1)}+\frac{d (a+b x)^{m+2}}{b^2 (m+2)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0182928, antiderivative size = 46, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.077, Rules used = {43} \[ \frac{(b c-a d) (a+b x)^{m+1}}{b^2 (m+1)}+\frac{d (a+b x)^{m+2}}{b^2 (m+2)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 43
Rubi steps
\begin{align*} \int (a+b x)^m (c+d x) \, dx &=\int \left (\frac{(b c-a d) (a+b x)^m}{b}+\frac{d (a+b x)^{1+m}}{b}\right ) \, dx\\ &=\frac{(b c-a d) (a+b x)^{1+m}}{b^2 (1+m)}+\frac{d (a+b x)^{2+m}}{b^2 (2+m)}\\ \end{align*}
Mathematica [A] time = 0.0301487, size = 41, normalized size = 0.89 \[ \frac{(a+b x)^{m+1} (-a d+b c (m+2)+b d (m+1) x)}{b^2 (m+1) (m+2)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.002, size = 49, normalized size = 1.1 \begin{align*} -{\frac{ \left ( bx+a \right ) ^{1+m} \left ( -bdmx-bcm-bdx+ad-2\,bc \right ) }{{b}^{2} \left ({m}^{2}+3\,m+2 \right ) }} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.79118, size = 171, normalized size = 3.72 \begin{align*} \frac{{\left (a b c m + 2 \, a b c - a^{2} d +{\left (b^{2} d m + b^{2} d\right )} x^{2} +{\left (2 \, b^{2} c +{\left (b^{2} c + a b d\right )} m\right )} x\right )}{\left (b x + a\right )}^{m}}{b^{2} m^{2} + 3 \, b^{2} m + 2 \, b^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.804482, size = 377, normalized size = 8.2 \begin{align*} \begin{cases} a^{m} \left (c x + \frac{d x^{2}}{2}\right ) & \text{for}\: b = 0 \\\frac{a d \log{\left (\frac{a}{b} + x \right )}}{a b^{2} + b^{3} x} + \frac{a d}{a b^{2} + b^{3} x} - \frac{b c}{a b^{2} + b^{3} x} + \frac{b d x \log{\left (\frac{a}{b} + x \right )}}{a b^{2} + b^{3} x} & \text{for}\: m = -2 \\- \frac{a d \log{\left (\frac{a}{b} + x \right )}}{b^{2}} + \frac{c \log{\left (\frac{a}{b} + x \right )}}{b} + \frac{d x}{b} & \text{for}\: m = -1 \\- \frac{a^{2} d \left (a + b x\right )^{m}}{b^{2} m^{2} + 3 b^{2} m + 2 b^{2}} + \frac{a b c m \left (a + b x\right )^{m}}{b^{2} m^{2} + 3 b^{2} m + 2 b^{2}} + \frac{2 a b c \left (a + b x\right )^{m}}{b^{2} m^{2} + 3 b^{2} m + 2 b^{2}} + \frac{a b d m x \left (a + b x\right )^{m}}{b^{2} m^{2} + 3 b^{2} m + 2 b^{2}} + \frac{b^{2} c m x \left (a + b x\right )^{m}}{b^{2} m^{2} + 3 b^{2} m + 2 b^{2}} + \frac{2 b^{2} c x \left (a + b x\right )^{m}}{b^{2} m^{2} + 3 b^{2} m + 2 b^{2}} + \frac{b^{2} d m x^{2} \left (a + b x\right )^{m}}{b^{2} m^{2} + 3 b^{2} m + 2 b^{2}} + \frac{b^{2} d x^{2} \left (a + b x\right )^{m}}{b^{2} m^{2} + 3 b^{2} m + 2 b^{2}} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.08224, size = 178, normalized size = 3.87 \begin{align*} \frac{{\left (b x + a\right )}^{m} b^{2} d m x^{2} +{\left (b x + a\right )}^{m} b^{2} c m x +{\left (b x + a\right )}^{m} a b d m x +{\left (b x + a\right )}^{m} b^{2} d x^{2} +{\left (b x + a\right )}^{m} a b c m + 2 \,{\left (b x + a\right )}^{m} b^{2} c x + 2 \,{\left (b x + a\right )}^{m} a b c -{\left (b x + a\right )}^{m} a^{2} d}{b^{2} m^{2} + 3 \, b^{2} m + 2 \, b^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]